import java.util.*;

/**
 * Prompts the user for their income, then reports the corresponding tax
 */
public class Taxes {

    public static void main(String[] args) {


    // --------------------------------
    // ----- ENTER YOUR CODE HERE -----
    // --------------------------------
        
        double tax;
        Scanner input = new Scanner(System.in);
        System.out.print("What is the double value of your income? ");
        double income = input.nextDouble();
        if (income > 30000) {
            tax = income * 0.3;
            System.out.println("$" + income + " is taxed $" + tax);
        }
        else if (income > 15000) {
            tax = income * 0.2;
            System.out.println("$" + income + " is taxed $" + tax);
        }
        else if (income > 6000) {
            tax = income * 0.1;
            System.out.println("$" + income + " is taxed $" + tax);
        }
        else {
            tax = 0.00;
            System.out.println("$" + income + " is taxed $" + tax);
        }
        

    // --------------------------------
    // --------- END USER CODE --------
    // --------------------------------


    }

}

              